package com.neusoft.dibuy.lib;

public class MyObject3  extends  Object{
    private int index;
    private  int  age;
    public static void main(String[] args) {
//        equals 判断是否可以替代
    }

    @Override
    public boolean equals(Object obj) {
        String s ;
        if (obj ==null)
            return  false;
        if (this == obj)
            return  true;
        if (!(obj instanceof  MyObject3))
            return  false;
        MyObject3  o =   ((MyObject3)obj);
        return   this.index == o.index  && this.age == o.age;
    }
}
class  MyObject4  extends  MyObject3{

}
